﻿<Window x:Class="XYOfficeSystemWPF.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="登录" Height="195" Width="369" WindowStyle="SingleBorderWindow" WindowStartupLocation="CenterScreen">
    <Grid Width="260" MinWidth="260" MaxWidth="260" MinHeight="90" Height="90" MaxHeight="90">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="50"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Label Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">帐号：</Label>
        <Label Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">密码：</Label>
        <TextBox Grid.Row="0" Name="txtLoginId" Grid.Column="1" Height="25" VerticalContentAlignment="Center">admin</TextBox>
        <PasswordBox Grid.Row="1" Name="txtLoginPwd" Grid.Column="1" Height="25" VerticalContentAlignment="Center" Password="000000"></PasswordBox>
        <Button Name="btnReset" Grid.Row="2" Grid.Column="1" Width="55" Height="25" Margin="36,2,120,2" Click="btnReset_Click">重置</Button>
        <Button Name="btnLogin" Grid.Row="2" Grid.Column="1"  Width="55" Height="25" Margin="106,2,50,2" Click="btnLogin_Click">登录</Button>
    </Grid>
</Window>
